using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Cafe.View
{
    public partial class FrmDmBan : Cafe.FrmTemplate
    {
        private Controller.dmBanController control = new Cafe.Controller.dmBanController();
        DataSet dsDmban = new DataSet();

        public FrmDmBan()
        {
            InitializeComponent();
            displayInfo();
        }

        public void displayInfo() {
            dsDmban = control.getAllData();
            gridDmban.DataSource = dsDmban.Tables[0];
        }

        public override void  PerformSave()
        { 	
            control.updateBan(dsDmban.Tables[0]);
        }


    }
}